package com.cimr.dto.file;


import cn.hutool.json.JSONObject;

/**
 * Created by lenovo on 2017/12/29.
 */
public class FileDto {
    private String originalName;
    private String newFileName;
    private String sourceUrl;
    private String minLogoUrl;
    private String middleLogoUrl;
    private String maxLogoUrl;
    private Integer imgWidth;
    private Integer imgHeight;
    private String type;
    private String descript;
    public FileDto() {

    }

    public FileDto(JSONObject jsonObject){
        this.originalName = (String) jsonObject.get("originalName");
        this.newFileName = (String)jsonObject.get("newFileName");
        this.sourceUrl =(String)jsonObject.get("sourceUrl");
        this.minLogoUrl = (String)jsonObject.get("minLogoUrl");
        this.middleLogoUrl = (String)jsonObject.get("middleLogoUrl");
        this.maxLogoUrl = (String)jsonObject.get("maxLogoUrl");
        this.imgHeight = (Integer) jsonObject.get("imgHeight");
        this.imgWidth = (Integer) jsonObject.get("imgWidth");
        this.type = (String)jsonObject.get("type");
        this.descript = (String)jsonObject.get("descript");
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getNewFileName() {
        return newFileName;
    }

    public void setNewFileName(String newFileName) {
        this.newFileName = newFileName;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getMinLogoUrl() {
        return minLogoUrl;
    }

    public void setMinLogoUrl(String minLogoUrl) {
        this.minLogoUrl = minLogoUrl;
    }

    public String getMiddleLogoUrl() {
        return middleLogoUrl;
    }

    public void setMiddleLogoUrl(String middleLogoUrl) {
        this.middleLogoUrl = middleLogoUrl;
    }

    public String getMaxLogoUrl() {
        return maxLogoUrl;
    }

    public void setMaxLogoUrl(String maxLogoUrl) {
        this.maxLogoUrl = maxLogoUrl;
    }

    public Integer getImgWidth() {
        return imgWidth;
    }

    public void setImgWidth(Integer imgWidth) {
        this.imgWidth = imgWidth;
    }

    public Integer getImgHeight() {
        return imgHeight;
    }

    public void setImgHeight(Integer imgHeight) {
        this.imgHeight = imgHeight;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }
}
